Skip to content

LTE-3039: IDM is stuck in XLE causing XB to not discover Remote Device - #15

Open
biju-vi wants to merge 2 commits into
rdkcentral:mainfrom
biju-vi:socket
Open

LTE-3039: IDM is stuck in XLE causing XB to not discover Remote Device#15
biju-vi wants to merge 2 commits into
rdkcentral:mainfrom
biju-vi:socket

Conversation

@biju-vi

@biju-vi biju-vi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Reason for change: Exit from loop if socket is not usable

Test Procedure: NA

Risks: Low
Signed-off-by: biju.vijayanindiradevi@sky.uk

Reason for change: Exit from loop if socket is not usable

Test Procedure: NA

Risks: Low
Signed-off-by: biju.vijayanindiradevi@sky.uk
Copilot AI review requested due to automatic review settings August 6, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the message receive/processing loops to exit early when a data encryption step fails, preventing continued processing after an error.

Changes:

  • Add break; after “Data encryption failed” error logging in IDM_Incoming_FT_Response.
  • Add break; after “Data encryption failed” error logging in IDM_SFT_receive.
  • Add inline comments explaining the early-exit behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/InterDeviceManager/Idm_msg_process.c Outdated
Comment on lines +519 to +521
CcspTraceError(("(%s:%d) Data encryption failed (Err: %d)\n", __FUNCTION__, __LINE__,bytes));
// Exit from loop if socket is not usable ot there is no data to read
break;
Comment thread source/InterDeviceManager/Idm_msg_process.c Outdated
@biju-vi
biju-vi requested a review from Copilot August 6, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@biju-vi
biju-vi requested a review from Copilot August 6, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Reason for change: Exit from loop if socket is not usable

Test Procedure: NA

Risks: Low
Signed-off-by: biju.vijayanindiradevi@sky.uk
Copilot AI review requested due to automatic review settings August 6, 2026 18:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

source/InterDeviceManager/Idm_msg_process.c:882

  • Similar to the earlier receive loop: breaking on bytes<=0 prevents a hang, but the function still returns FT_SUCCESS unconditionally. That can report success even when fewer than total_bytes were received. Return FT_ERROR when length < total_bytes after the loop (and optionally clean up the partial file).
                    CcspTraceError(("(%s:%d) Socket Read Error (bytes read: %d)\n", __FUNCTION__, __LINE__,bytes));
                    // Exit from loop if socket is not usable or no data to read
                    break;

Comment on lines +519 to +521
CcspTraceError(("(%s:%d) Socket Read Error (bytes read: %d)\n", __FUNCTION__, __LINE__,bytes));
// Exit from loop if socket is not usable or there is no data to read
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants